import * as React from "react" import { type Metadata } from "next" import { Shell } from "@/components/shell" import { Skeleton } from "@/components/ui/skeleton" import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" import { SearchParams } from "@/types/table" import { SearchParamsEmailLogCache } from "@/lib/email-log/validations" import { getEmailLogList } from "@/lib/email-log/service" import { EmailLogTable } from "@/lib/email-log/table/email-log-table" import { useTranslation } from "@/i18n" export const metadata: Metadata = { title: "이메일 발신 이력 조회", description: "발신 이력을 조회합니다.", } interface EmailLogPageProps { params: Promise<{ lng: string }> searchParams: Promise } export default async function EmailLogPage(props: EmailLogPageProps) { const { lng } = await props.params const { t } = await useTranslation(lng, 'menu') const searchParams = await props.searchParams const search = SearchParamsEmailLogCache.parse(searchParams) const promises = Promise.all([ getEmailLogList(search), ]) return (

{t('menu.information_system.email_log')}

}> } >
) }